package com.lt.bcra.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 基因检测表
 * </p>
 *
 * @author LuoTian
 * @since 2022-05-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="BcraGeneTest对象", description="基因检测表")
public class BcraGeneTest implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "基因检测表主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "您或家族成员做过基因检测,并被证实携带基因变异吗")
    private String isGeneDetection;

    @ApiModelProperty(value = "受检者的身份")
    private String familyValue;

    @ApiModelProperty(value = "样本类型")
    private String sampleType;

    @ApiModelProperty(value = "检测的基因")
    private String detectedGenes;

    @ApiModelProperty(value = "变异类型")
    private String variationType;

    @ApiModelProperty(value = "上传文件id")
    private Integer fileId;

    @ApiModelProperty(value = "上传文件路径地址")
    private String filePath;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill= FieldFill.INSERT)//创建时候自动填充时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")// 表示接收时间类型
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill= FieldFill.INSERT_UPDATE)//创建和修改时候自动填充时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")// 表示接收时间类型
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "编辑者")
    private String editor;

    @ApiModelProperty(value = "编辑者主键")
    private Integer editoId;

    @ApiModelProperty(value = "对应模块标题")
    private String moduleTitle;

    @ApiModelProperty(value = "模块id")
    private Integer moduleId;

    @ApiModelProperty(value = "逻辑删除")
    @TableField(value = "is_deleted",fill= FieldFill.INSERT)//创建时候自动填充逻辑删除标识
    @TableLogic
    private Boolean deleted;

    @ApiModelProperty(value = "问卷编号")
    private String questionnaireCode;


}
